#ifndef ADMINADDEMPLOYEEVIEW_H
#define ADMINADDEMPLOYEEVIEW_H

#include <QWidget>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include "adminmanager.h"

namespace Ui {
class AdminAddEmployeeView;
}

class AdminAddEmployeeView : public QWidget
{
    Q_OBJECT
public:
    explicit AdminAddEmployeeView(QWidget *parent = nullptr);
    ~AdminAddEmployeeView();
    void loadDepartments();
private slots:
    void onAddButtonClicked();
    void onResetButtonClicked();
    void onCancelButtonClicked();

    bool validateEmployeeInfo();
    bool addNewEmployee();
    void handleOperationResult(bool success, const QString &message);

private:
    Ui::AdminAddEmployeeView *ui;
    AdminManager *m_adminManager;


signals:
};

#endif // ADMINADDEMPLOYEEVIEW_H
